<?php
// include '../../lib/Swoole/Cluster/ClusterServer.php';

// $config = include '../cluster/cluster_ini2.php';
// $port = 0;
// // var_dump($argv);
// if(count($argv) > 1){
//     $port = $argv[1];
// }
// // $clusterServer = new Swoole\Cluster\ClusterServer($config, $port);
// // $clusterServer->start();
// $registryServer = new \Swoole\Registry\RegistryServer($config);
// $registryServer->start();


require_once '../../lib/PAutoLoader.php';
$config = include 'registry_ini.php';
// print_r($config);
$registryServer = new Swoole\Registry\RegistryServer($config);
$registryServer->start();
?>